Skip to content

ci(backport): register workflow_dispatch trigger#4376

Merged
sveitser merged 1 commit into
mainfrom
ma/backport-enable-workflow-dispatch
May 22, 2026
Merged

ci(backport): register workflow_dispatch trigger#4376
sveitser merged 1 commit into
mainfrom
ma/backport-enable-workflow-dispatch

Conversation

@sveitser
Copy link
Copy Markdown
Collaborator

I need workflow dispatch on main for testing #4375

Adds workflow_dispatch with pr_number + target_branch inputs so the
backport workflow can be triggered manually from any branch.

Job logic is unchanged: the existing 'if: github.event.pull_request.merged'
guard makes dispatch on main a no-op. The trigger is needed on main so
that follow-up branches with the full implementation can be tested via
'gh workflow run --ref <branch>'.
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

@claude
Copy link
Copy Markdown
Contributor

claude Bot commented May 22, 2026

Claude finished @sveitser's task in 53s —— View job


Code Review: ci(backport): register workflow_dispatch trigger

  • Gather context and read the diff
  • Review the workflow changes
  • Post review feedback

Summary: This PR adds a workflow_dispatch trigger with pr_number and target_branch inputs to the backport workflow. The purpose is to register the trigger on main so that PR #4375 (which adds the full mergiraf + Claude fallback logic) can be tested via manual dispatch from the Actions UI.

Review: LGTM — this is a minimal, low-risk scaffolding change.

One thing to be aware of (not a blocker): as-is, a manual dispatch of this workflow would be a no-op because the job's if: github.event.pull_request.merged condition (line 24) evaluates to falsy when triggered via workflow_dispatch. That's fine here since the actual logic to consume these inputs is in #4375, but it means this workflow can't accidentally do anything unintended if someone triggers it manually before #4375 lands.

No issues found — the change is clean, correctly typed, and appropriately scoped.

@sveitser sveitser enabled auto-merge (squash) May 22, 2026 12:58
@sveitser sveitser disabled auto-merge May 22, 2026 13:00
@sveitser sveitser merged commit 96cdf9c into main May 22, 2026
75 checks passed
@sveitser sveitser deleted the ma/backport-enable-workflow-dispatch branch May 22, 2026 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants